import PropTypes from 'prop-types'
import React, { memo } from 'react'
import SectionHomeV1Wrapper from './style'
import SectionHeader from '@/components/section-header'
import SectionRoom from '@/components/section-rooms'

const SectionHomeV1 = memo((props) => {
  const {itemData} = props
  return (
    <SectionHomeV1Wrapper>
      {/* 性价比 */}
      <div className="gooditem">
        <SectionHeader title={itemData.title} subtitle={itemData.subtitle}/>
        <SectionRoom roomItem={itemData.list} itemWidth='25%'/>
      </div>
    </SectionHomeV1Wrapper>
  )
})

SectionHomeV1.propTypes = {
  itemData: PropTypes.object,
}

export default SectionHomeV1